/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package radiopatrulla;

/**
 *
 * @author host
 */
public class Patrulla {
    
    int x = -100;
    int y = -100;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
    
    
    public double llamadaVerdadera(){
        return Math.abs(40+Z()*5);
    }
    
    public double llamadaFalsa(){
        return Math.abs(5+Z()*1);
    }

    private double Z() {
       double z =0;
        for (int i = 0; i < 10; i++) {
            z+=Math.random();
        }
        System.out.println("z:" +(z-6));
        return z-6;
    }
}
